import QtQuick 1.0
import QtMobility.sensors 1.1

Rectangle {
    id: screen
    width: 854
    height: 480

    Image {
        id: background
        source: "images/background.png"
        x: 0
        y: 0
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            console.log("SNOWBALL!");
        }
    }

    Image {
        id: snowman
        x: 50
        y: 480-120
        source: "images/snowman.png"
    }



    Accelerometer {
       id: accel
       active: true
       onReadingChanged: {
           console.log("x="+reading.x + "\n y=" + reading.y +"\n z= "+ reading.z);
           snowman.x += reading.y*2;
       }
   }
}
